<?php /* Smarty version 2.6.20, created on 2009-11-29 14:42:56
         compiled from supply.list.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'supply.list.html', 12, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['NCharset']; ?>
" />
<link href="<?php echo $this->_tpl_vars['template_dir']; ?>
/home/css/supply.css" rel="stylesheet" type="text/css" />
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => '../head.config.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</head>
<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => '../top.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="content">
	<div class="left-navigation">
		<a href="<?php echo $this->_tpl_vars['site_url']; ?>
"><?php echo $this->_tpl_vars['langCIndex']; ?>
</a><a href="javascript:;" onclick="list_search('class_id','');"> <?php echo $this->_tpl_vars['langSupplyAllClass']; ?>
</a><?php echo $this->_tpl_vars['product_cate_path']; ?>
<span class="title"><?php echo $this->_tpl_vars['langSupplySearchAll']; ?>
<?php echo ((is_array($_tmp=@$this->_tpl_vars['supply_number'])) ? $this->_run_mod_handler('default', true, $_tmp, '0') : smarty_modifier_default($_tmp, '0')); ?>
<?php echo $this->_tpl_vars['langSupplyItem']; ?>
</span>
	</div>
	<div class="left">
		<div class="clear-f-f"></div>
		<DIV class=list-filter-block>
			<DIV class=lfb-m>
			<DIV class=lfb-b>
				<?php if ($this->_tpl_vars['search_cate_array'][0]['pc_id'] != ''): ?>
				<DIV class="list-filter yk-fix-float fenlei">
					<P><?php echo $this->_tpl_vars['langSupplyAllClass']; ?>
  <strong style="font-weight:bold;">:</strong></P>
					<UL class=yk-fix-float>
						<?php $_from = $this->_tpl_vars['search_cate_array']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['one']):
?>
							<li>
								<a href="javascript:;" onclick="list_search('class_id','<?php echo $this->_tpl_vars['one']['pc_id']; ?>
');"><?php echo $this->_tpl_vars['one']['pc_name']; ?>
</a>
							</li>
						<?php endforeach; endif; unset($_from); ?>
					</UL>
				</DIV>
				<?php endif; ?>
				<DIV class="list-filter yk-fix-float">
					<P><?php echo $this->_tpl_vars['langSupplyFilter']; ?>
 <strong style="font-weight:bold;">:</strong> </P>
					<UL class=yk-fix-float>
						<LI class="first current"><B>
							<?php if ($this->_tpl_vars['condition']['type'] == ''): ?>
								<?php echo $this->_tpl_vars['langSupplyAll']; ?>

							<?php else: ?>
								<a href="javascript:;" onclick="list_search('type','');"><?php echo $this->_tpl_vars['langSupplyAll']; ?>

							<?php endif; ?></A></B> 
						</LI>
						<LI class="gongqiu">
						<B>
							<?php if ($this->_tpl_vars['condition']['type'] == '1'): ?>
								<?php echo $this->_tpl_vars['langSupplyTypeGone']; ?>

							<?php else: ?>
								<a href="javascript:;" onclick="list_search('type','1');"><?php echo $this->_tpl_vars['langSupplyTypeGone']; ?>
</a>
							<?php endif; ?></B> </LI>
		 				<LI class="gongqiu"><B>
							<?php if ($this->_tpl_vars['condition']['type'] == '2'): ?>
								<?php echo $this->_tpl_vars['langSupplyTypeQiu']; ?>

							<?php else: ?>
								<a href="javascript:;" onclick="list_search('type','2');"><?php echo $this->_tpl_vars['langSupplyTypeQiu']; ?>
</a>
							<?php endif; ?></B>
						</LI>
					</UL>
				</DIV>
			</DIV>
			</DIV>
		</DIV>
		<div class="clear-1-1"></div>
		<div class="condition-filter yk-fix-float">
			<ul class="condition-tab yk-fix-float">
  				<li class=selected><b><b><h1>
					<?php if ($this->_tpl_vars['product_cate_array']['pc_id'] != ''): ?>
						<?php echo $this->_tpl_vars['product_cate_array']['pc_name']; ?>

					<?php else: ?>
						<?php echo $this->_tpl_vars['langSupplyAllInfo']; ?>

					<?php endif; ?>
				</h1></b></b>
				</li>
			</ul>
		</div>
        <div class="free-pub">
			<a class="yk-btn yk-btn-style-d yk-m" href="index.php?action=add"><b><b>
				<span class="yk-icon-size-m yk-icon-pub yn-inline-block-icon"></span><span><?php echo $this->_tpl_vars['langSupplyAdd']; ?>
</span></b></b>
			</a> 
		</div>
		<div class=quick-filter>
			<p><span class="top-ver"><?php echo $this->_tpl_vars['langSupplyPrice']; ?>
：</span>
			<span>
			<input class=min-price name="search_start_price" id="search_start_price" maxlength="12" value="<?php echo $this->_tpl_vars['condition']['start_price']; ?>
">
			 &nbsp;-&nbsp;
			<input class=max-price name="search_end_price" id="search_end_price" maxlength="12" value="<?php echo $this->_tpl_vars['condition']['end_price']; ?>
"></span>
			<span style=" padding-left:25px;"></span>
			<span class="juanju-1"><label for="search_recommend"><input type="checkbox" name="search_recommend" id="search_recommend" value="1" <?php if ($this->_tpl_vars['condition']['recommend'] == '1'): ?>checked="checked"<?php endif; ?> /><span><?php echo $this->_tpl_vars['langSupplySellRecommend']; ?>
</span></label></span>
			
			<span class="juanju-1"><label for="search_have_pic"><input type="checkbox" name="search_have_pic" id="search_have_pic" value="1" <?php if ($this->_tpl_vars['condition']['have_pic'] == '1'): ?>checked="checked"<?php endif; ?> /><span><?php echo $this->_tpl_vars['langSupplyHavePic']; ?>
</span></label></span>
			
			<span class="juanju-1"><label for="search_full_contact"> <input type="checkbox" name="search_full_contact" id="search_full_contact" value="1" <?php if ($this->_tpl_vars['condition']['full_contact'] == '1'): ?>checked="checked"<?php endif; ?> /><span><?php echo $this->_tpl_vars['langSupplyFullContact']; ?>
</span></label></span>
			
			
		  <span style=" padding-left:2px;"><button type=submit onclick="list_search_submit();"><?php echo $this->_tpl_vars['langCEnsure']; ?>
</button></span></p>
  		</div>
		<div class="tbl-list col5">
			<table class="yk-table yk-tbody-cell-dashed">
 				<thead>
  					<tr>
    					<th class="title first-col">
      						<div class=lt>
								<span><?php echo $this->_tpl_vars['langSupplyShowType']; ?>
：</span> 
								<b class=display-mod>
									<a href="javascript:;" onclick="list_search('orderby','4');"><span class="ico-left"><?php echo $this->_tpl_vars['langSupplySortByAdd']; ?>
</span></a> 
									<a href="javascript:;" onclick="list_search('orderby','2');"><span class="ico-left-2"><?php echo $this->_tpl_vars['langSupplySortByRe']; ?>
</span></a> 
									<a href="javascript:;" onclick="list_search('orderby','5');"><span class="ico-left-1"><?php echo $this->_tpl_vars['langSupplyPopularity']; ?>
</span></a>
								</b>
							</div>
						</th>
    					<th class=middle-col>
      						<div class=dv><span><?php echo $this->_tpl_vars['langSupplyPrice']; ?>
</span> </div>
						</th>
    					<th class=middle-col>
      						<div class=dv><span><?php echo $this->_tpl_vars['langSupplyAddTime']; ?>
</span> </div>
						</th>
    					<th class=last-col>
      						<div class=rt>
      							<div class=dv><span><?php echo $this->_tpl_vars['langSupplyMember']; ?>
</span> 
								</div>
							</div>
						</th>
					</tr>
				</thead>
  				<tbody>
 				<?php if ($this->_tpl_vars['supply_array'][0]['s_id'] != ''): ?>
					<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['supply_array']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
  					<tr>
    					<td class=title>
      						<div class="discription has-image">
      							<div class=discription-main>
      								<div class=discription-content>
      									<p class="">
										<?php if ($this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['s_recommend'] == 1): ?>
											<span class=gq></span>
										<?php endif; ?>
										<a title="<?php echo $this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['s_title']; ?>
" class="list-title" href="index.php?action=view&sid=<?php echo $this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['s_id']; ?>
" target="_blank"><?php echo $this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['short_title']; ?>
</a>
										</p>
      									<p class=jianjie>
											<span class=yk-lowlight><?php echo $this->_tpl_vars['langSupplyIntroduction']; ?>
:</span><?php echo $this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['short_content']; ?>
</p>
								     </div>
							     </div>
      							<div class=discription-content>
									<a class="img-wrap" href="index.php?action=view&sid=<?php echo $this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['s_id']; ?>
" title="<?php echo $this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['s_title']; ?>
" target="_blank">
									<?php if ($this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['s_pic'][0] != ''): ?>
										<img width="88" height="66" class=img src="<?php echo $this->_tpl_vars['site_url']; ?>
/<?php echo $this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['s_pic'][0]; ?>
">
									<?php else: ?>
										<img class=img src="<?php echo $this->_tpl_vars['template_dir']; ?>
/home/images/default_88_66.gif">
									<?php endif; ?>
									</a> 
	  							</div>
							 </div>
						</td>
    					<td class=middle-col>
							<?php if ($this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['s_price'] == 0 || $this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['s_price_face'] == '1'): ?>
								<?php echo $this->_tpl_vars['langSupplyPriceToFace']; ?>

							<?php else: ?>
								<?php echo $this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['s_price']; ?>

							<?php endif; ?>
						</td>
    					<td class=middle-col><?php echo $this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['s_time']; ?>
</td>
    					<td class=pu>
      						<p>
								<?php if ($this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['s_anonymous'] == 1): ?>
									<a target="_blank" href="<?php echo $this->_tpl_vars['site_url']; ?>
/store/index.php?userid=<?php echo $this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['s_member_id']; ?>
" ><?php echo $this->_tpl_vars['supply_array'][$this->_sections['i']['index']]['s_member_name']; ?>
</a>
								<?php else: ?>
									<?php echo $this->_tpl_vars['langSupplyAntmuse']; ?>

								<?php endif; ?>
							</p>
						</td>
					</tr>
					<?php endfor; endif; ?>
				<?php endif; ?>
				</tbody>
			</table>
			<div class="yk-fix-float tbl-bottom">
				<div class="pagehead">
					<?php if ($this->_tpl_vars['supply_array'][0]['s_id'] != ''): ?>
					<?php echo $this->_tpl_vars['page_list']; ?>

					<?php endif; ?>
				</div>
			<div class="free-pub free-pub-bottom">
				<a class="yk-btn yk-btn-style-d yk-m" href="#;city=2260" target=_blank><b><b><span 
class="yk-icon-size-m yk-icon-pub yn-inline-block-icon"></span><span><?php echo $this->_tpl_vars['langSupplyAdd']; ?>
</span></b></b></a>
			</div>
	</div>
	<div class="bottom-sousuo">
	<ul><?php echo $this->_tpl_vars['langSupplySearchRemark']; ?>
</ul>
		<div class="search_2">
		<form action="index.php" method="get">
			<input class="z_search" name="keyword" type="text" />
			<input class="a_search" value="<?php echo $this->_tpl_vars['langCSearch']; ?>
" type="submit" />
		</form>
		</div>
	</div>
	</div>
		<script>
			function list_search_submit(){
				$('#start_price').val($('#search_start_price').val());
				$('#end_price').val($('#search_end_price').val());
				if($('#search_recommend').attr('checked') == true){
					$('#recommend').val('1');
				}else{
					$('#recommend').val('');
				}
				if($('#search_have_pic').attr('checked') == true){
					$('#have_pic').val('1');
				}else{
					$('#have_pic').val('');
				}
				if($('#search_full_contact').attr('checked') == true){
					$('#full_contact').val('1');
				}else{
					$('#full_contact').val('');
				}
				$('#form_list').submit();
			}
		</script>
	</div>
	<div class="right">
		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'supply.right.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	</div>
</div>
<form action="index.php" name="form_list" id="form_list">
<input type="hidden" name="class_id" id="class_id" value="<?php echo $this->_tpl_vars['condition']['class_id']; ?>
" />
<input type="hidden" name="type" id="type" value="<?php echo $this->_tpl_vars['condition']['type']; ?>
" />
<input type="hidden" name="recommend" id="recommend" value="<?php echo $this->_tpl_vars['condition']['recommend']; ?>
" />
<input type="hidden" name="have_pic" id="have_pic" value="<?php echo $this->_tpl_vars['condition']['have_pic']; ?>
" />
<input type="hidden" name="full_contact" id="full_contact" value="<?php echo $this->_tpl_vars['condition']['full_contact']; ?>
" />
<input type="hidden" name="valdate" id="valdate" value="<?php echo $this->_tpl_vars['condition']['valdate']; ?>
" />
<input type="hidden" name="orderby" id="orderby" value="<?php echo $this->_tpl_vars['condition']['orderby']; ?>
" />
<input type="hidden" name="start_price" id="start_price" value="<?php echo $this->_tpl_vars['condition']['start_price']; ?>
" />
<input type="hidden" name="end_price" id="end_price" value="<?php echo $this->_tpl_vars['condition']['end_price']; ?>
" />
</form>
<div class="clear-19"></div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => '../../../../html/footer.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>
<script>
function list_search(id,value){
	$('#'+id).val(value);
	$('#form_list').submit();
}
</script>